#include "board.h"
#include "BH1750.h"

float Lux = 0;

void setup() {
	board_init();    /* 板卡初始化 */
  
	BH1750_Init();   /* 初始化BH1750 */
  Serial.begin(115200);
  Serial.println("00000");
}

void loop() {
  /* 读取光照强度 */
	BH1750_ReadLightIntensity(&Lux);
  Serial.print("BH1750 Read Light Intensity is:");
  Serial.println(Lux);
  Lux = 0;
  delay(1000);
}
